package com.pension.servlet.calendar;

import java.io.*;
import java.sql.*;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.*;

import org.apache.struts.action.*;

public class CalendarsAction extends Action
{
	@Override
	public ActionForward execute(ActionMapping map, ActionForm form, HttpServletRequest req, HttpServletResponse res) throws Exception
	{
		req.setCharacterEncoding("utf-8");
		res.setContentType("text/html;charset=utf-8");
		
		String t = (String) req.getAttribute("testkey1");
		
		System.out.println("옹 들어옴 : " + t);
		
		res.setContentType("text/xml;charset=utf-8");
		res.setHeader("Cache-Control", "no-cache");
		res.getWriter().write(t);
		
		return map.findForward(t);
	}
}
